;;;; init-haskell  -  Settings for Haskell programming language
;;;;
;;;;  Evgeniy Sharapov, evgeniy.sharapov@gmail.com 
;;;;
;;;;
(autoload 'haskell-mode "haskell-mode" "Major mode for editing Haskell sources" t)
;(load "haskell-site-file")
(setq auto-mode-alist
      (append auto-mode-alist
              '(("\\.[hg]s$"  . haskell-mode)
                ("\\.hi$"     . haskell-mode)
                ("\\.l[hg]s$" . literate-haskell-mode))))

(add-hook 'haskell-mode-hook '(lambda ()
                                (turn-on-haskell-doc-mode)
                                (turn-on-haskell-indent)
                                (imenu-add-menubar-index)
                                (flyspell-prog-mode 1)
                                (when (require 'init-yasnippet nil t)
                                  (yas/minor-mode-auto-on))))

(provide 'init-haskell)